package com.yy.feign;

import com.yy.common.Resault;
import com.yy.domain.Bicycle;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "bicycle-service")
public interface BicycleFeign {
    @GetMapping("bicycle/getBicycleById")
    public Bicycle getBicycleById(@RequestParam("bicycleId") Integer bicycleId);
    @PostMapping("bicycle/updateBicycle")
    public Resault updateBicycle(@RequestBody Bicycle bicycle);
}
